package com.bysj.entity;

import java.util.List;

public class CollectedGoods {
    private int id;
    private int gid;
    private int uid;
    private List<Goods> goods;
    private User user;

    public CollectedGoods() {
    }

    public CollectedGoods(int id, int gid, int uid, List<Goods> goods, User user) {
        this.id = id;
        this.gid = gid;
        this.uid = uid;
        this.goods = goods;
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "CollectedGoods{" +
                "id=" + id +
                ", gid=" + gid +
                ", uid=" + uid +
                ", goods=" + goods +
                ", user=" + user +
                '}';
    }
}
